package com.htu.courseService.common.enums;

import lombok.Getter;

/**
 * Created By JNNarrator on 2024/9/6 18:00
 * email: jiangn09@chinatelecom.cn
 */
@Getter
public enum ResponseCodeEnum {
	OK(200, "请求成功"),
	
	BAD_REQUEST(400, "失败的请求"),
	
	UNAUTHORIZED(401, "未授权"),
	
	FORBIDDEN(403, "禁止访问"),
	
	NOT_FOUND(404, "请求找不到"),
	
	NOT_ACCEPTABLE(406, "不可访问"),
	
	CONFLICT(409, "冲突"),
	
	ERROR(500, "服务器发生异常"),
	
	USER_NOT_FOUND(401,"用户未找到"),
	PASSWORD_ERROR(401,"密码错误"),
	CODE_NOT_EXIST(401,"验证码不存在"),
	CODE_ERROR(401,"验证码错误");
	
	private final Integer code;
	
	private final String message;
	
	ResponseCodeEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
	
}

